import request from '@/utils/request'

// 查询设备类型列表
export function equipmentTypeList(params) {
  return request({
    url: '/basic/equipmentType/list',
    method: 'get',
    params,
  })
}
// 导出设备类型列表
export function equipmentTypeExport(data) {
  return request({
    url: `/basic/equipmentType/export`,
    method: "post",
    data,
  });
}
// 获取设备类型详细信息
export function equipmentTypeDetail(equipmentTypeId) {
  return request({
    url: '/basic/equipmentType/getInfo/' + equipmentTypeId,
    method: 'get'
  })
}
// 新增设备类型
export function equipmentTypeAdd(data) {
  return request({
    url: `/basic/equipmentType/add`,
    method: "post",
    data,
  });
}
// 修改设备类型
export function equipmentTypeEdit(data) {
  return request({
    url: '/basic/equipmentType/edit',
    method: 'post',
    data,
  })
}
// 删除设备类型
export function equipmentTypeDelete(equipmentTypeIds) {
  return request({
    url: '/basic/equipmentType/remove/' + equipmentTypeIds,
    method: 'get'
  })
}